Skip to content

[python] Reduce LeRobot DataLoader worker startup time - #9888

Open
XiaoHongbo-Hope wants to merge 4 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/atomic-s3-metadata-independent
Open

XiaoHongbo-Hope wants to merge 4 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/atomic-s3-metadata-independent

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

LeRobot's in-memory episode Dataset makes forkserver worker payloads exceed the process pipe capacity, delaying the first batch. Compress the standard pickle for Paimon-created episode metadata; workers restore the original Dataset state.

ALOHA CPU/local, 8 forkserver workers: first-batch median 7.83s (3 seeds; unoptimized: 27.72s). Hot throughput stays near 62 samples/s, and sample order matches. PyArrow 19/22: 87 LeRobot tests passed on each.

Upstream datasets #8339, included in 5.0.1, serializes only the Arrow table and rebuilds the batch index on load. Versions 4.8.5 and 5.0.0 still serialize both. This PR optimizes the older dependency stack; whether compression remains useful after upgrading to 5.0.1 requires rerunning the worker-startup benchmark.

@XiaoHongbo-Hope
XiaoHongbo-Hope deleted the codex/atomic-s3-metadata-independent branch September 16, 2026 09:21
@XiaoHongbo-Hope
XiaoHongbo-Hope restored the codex/atomic-s3-metadata-independent branch September 17, 2026 02:41
@XiaoHongbo-Hope
XiaoHongbo-Hope force-pushed the codex/atomic-s3-metadata-independent branch from 826f7b7 to 5417e14 Compare September 17, 2026 02:42
@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Prevent concurrent S3/OSS metadata overwrites [python] Reduce LeRobot DataLoader worker startup time Sep 17, 2026
@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as ready for review September 19, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant